<template>
  <div>
    <h3>这是电影/影院页面</h3>
    <button @click="fn">跳转到视频页</button>
    <p>
      <router-link to="/movies/hot">热映</router-link> |
      <router-link to="/movies/cinema">影院</router-link>
    </p>
    <router-view />
  </div>
</template>

<script>
export default {
  methods: {
    fn() {
      // this.$router.replace("/video");
      // 等价于
      this.$router.replace({ path: "/video" });
    },
  },
};
</script>
